<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01Demo</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

</head>
<body>
<h1 id="app">
    hello world{{name}}
</h1>

<div id="app2">
    <input  type="text" v-model="num">
    <button v-on:click="num++">点我</button>
    <h2>{{name}}的次数为{{num}}</h2>
</div>
<script type="text/javascript">
    var app = new Vue({
        el:"#app2",
        data:{
            name:"itheima",
            age:1,
            num:0
        },
    });
</script>
</body>
</html>